An extension to the include_str!()
macro for embedding an entire directory
tree into your binary.
Examples
The include_dir!()
macro will include a directory relative to the
project root (using the CARGO_MANIFEST_DIR
variable), in this example
the source code for the include_dir
crate has been included inside itself.
extern crate include_dir;
use Dir;
use Path;
const PROJECT_DIR: Dir = include_dir!;
#
Features
This library exposes a couple feature flags for enabling and disabling extra functionality. These are:
- example: compile in an example of the embedded directory tree